﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;

namespace ThreeByte.ActiveDeck.Web
{
    public static class UserPasswordUtil
    {
        public static void ResetPassword(string username, string newPassword) {

            MembershipUser user = Membership.GetUser(username);
            user.UnlockUser();
            string passwordReset = user.ResetPassword();
            user.ChangePassword(passwordReset, newPassword);
        }


    }
}